#pragma strict
var flag:boolean=true;
function Start () {

}

function FixedUpdate () {
  if (Input.GetKey (KeyCode.Space)){

    rigidbody.velocity = Vector3(0,0,40);
    rigidbody.freezeRotation = true;
    }
	 
	

}




/*
function OnTriggerEnter (other : Collider) {
  flag=false;
   transform.renderer.material.color = Color.blue;
        //rigidbody.velocity=Vector3(0,0,-10);
  
}

function OnTriggerExit (other : Collider) {
flag=true;
 transform.renderer.material.color = Color.red;
}
*/